
<?php
$this->load->view("plantillas/head");
?>

<div id='divmensaje' class=' ' ></div><br>

<div class="block">

    <div id="list" class="block_content tab_content " style="display: block;">
        <div class="divhead">
            <table>
                <tr class="th_table_black" ><td width="20">Disciplinas</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;
                    </td><td> 
                        <a href="<?php echo base_url() ?>index.php/link/crud_categorias">Listar Categorias </a><td>
                        |
                        <a href="<?php echo base_url() ?>index.php/link/Agregar_disciplina">Agregar Nueva Disciplina</a><td>
                </tr>  
            </table>    
        </div>
        <form method="post" action="">
            <table class="sortable_list" width="100%" cellspacing="0" cellpadding="0">
                <thead>
                    <tr class="tr_encabezado">
                        <th class="th_table_black" width="30%">Nombre Disciplina</th>
                        <th class="th_table_black" width="70%">Descripción</th>
                        <th class="th_table_black" >Opción</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    foreach ($disciplina as $i => $fila) {
                        if ($i % 2 == 0) {
                            $class = 'odd';
                        } else {
                            $class = "even";
                        }
                        $i = $i + 1;

                        echo '<tr class=' . $class . '>';
                        echo '<td>' . $fila->nomb_disciplina . '</td>';
                        echo '<td>' . $fila->descripcion . '</td>';

                        echo '<td class="options">';
                        ?>
                        <a class="tip" title="Editar" href="<?php echo base_url(); ?>index.php/controler_gestion_inventario/disciplina/Mostrar_Modificar_disciplina/?id_disciplina=<?php echo $fila->id_disciplina ?>&disciplina=<?php echo $fila->nomb_disciplina ?>&descripcion=<?php echo $fila->descripcion ?>">
                        <img src="<?php echo base_url(); ?>source/images/editar.png">

                        <a class="tip"  title="Eliminar" href="<?php echo base_url(); ?>index.php/controler_gestion_inventario/disciplina/Eliminar_disciplina/?id_disciplina=<?php echo $fila->id_disciplina ?>">
                            <img src="<?php echo base_url(); ?>source/images/delete.gif"></td>
                            <?php
                            echo '</tr>';
                        }
                        ?>
                        </table>
                        <?php echo $this->pagination->create_links(); ?>

                        </form>

                        </div>
                        <div class="bendl"></div>
                        <div class="bendr"></div>                         
                        </div>
                        <?php
                        $this->load->view("plantillas/footer");
                        ?>